Skip to content

Commit

Permalink
feature: add NoRequireInitialization module
Browse files Browse the repository at this point in the history
  • Loading branch information
artofhuman committed Jul 22, 2016
1 parent c2d05fd commit dea3014
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ source 'https://gems.railsc.ru/'
source 'https://rubygems.org'

# Specify your gem's dependencies in treasury.gemspec
gem 'mime-types', '< 3.0' if RUBY_VERSION < '2'
if RUBY_VERSION < '2'
gem 'mime-types', '< 3.0'
gem 'json', '< 2'
end

gemspec
24 changes: 24 additions & 0 deletions lib/treasury/fields/no_require_initialization.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# coding: utf-8
module Treasury
module Fields
# поле не требующее инициализации
# обрабатываются только новые данные в очереди
# очистка хранилищ не производится
#
# @since 0.5.0
# @api public
module NoRequireInitialization
protected

def query_rows(_offset)
[]
end

def lock_table(_name)
end

def reset_storage_data
end
end
end
end

0 comments on commit dea3014

Please sign in to comment.