Skip to content

Commit

Permalink
minor refactor - set top level class to instance var
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Severs committed Aug 25, 2017
1 parent 7c69e2b commit d077c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/frederick_api/v2/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.all_records
end

def self.top_level_namespace
self.to_s.split('::').first.constantize
@top_level_namespace ||= self.to_s.split('::').first.constantize
end

def self.site
Expand Down
2 changes: 1 addition & 1 deletion lib/frederick_api/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module FrederickAPI
# Current gem version
VERSION = '0.1.6'
VERSION = '0.1.7'
end

0 comments on commit d077c13

Please sign in to comment.